package com.ronglian.register_mini_program.result;

/**
 * 应用系统级别的错误码
 * <p>
 * Created by bysocket on 14/03/2017.
 */
public enum GlobalErrorInfoEnum implements ErrorInfoInterface {
    SUCCESS("200", "恭喜您，操作成功！"),
    FAIL("500", "不好意思，操作失败！"),
    NOT_FOUND("404", "服务无法找到，请联系管理员!");

    private String code;

    private String message;

    GlobalErrorInfoEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
